<?php
//banner image
$GLOBALS['PAGE_DATA_BANNER_IMG'] = Util::getGlobalValue('site_banner');
$GLOBALS['PAGE_DATA_BANNER_URL'] = Util::getGlobalValue('site_url');
$GLOBALS['PAGE_DATA_BANNER_URL'] = Util::enhanceUrl($GLOBALS['PAGE_DATA_BANNER_URL']);
$GLOBALS['PAGE_DATA_BANNER_NAME'] = Util::getGlobalValue('site_name');
//right float add
$dt = new DataTable(constant('DB_TABLE_FLOAT_WINDOW_AD'));
$GLOBALS['PAGE_DATA_FLOAT_WINDOW_AD'] = $dt->get_rand_list(1);
if ( count($GLOBALS['PAGE_DATA_FLOAT_WINDOW_AD']) > 0)
	$GLOBALS['PAGE_DATA_FLOAT_WINDOW_AD'] = $GLOBALS['PAGE_DATA_FLOAT_WINDOW_AD'][0];

//mem login
$GLOBALS['PAGE_DATA_MEM_HAS_LOGIN'] = SessionUtil::getVar(constant('SESSION_KEY_MEM_HAS_LOGIN'));
if ( $GLOBALS['PAGE_DATA_MEM_HAS_LOGIN'] ) {
	$GLOBALS['PAGE_DATA_MEM_LOGIN_NAME'] = SessionUtil::getVar(constant('SESSION_KEY_MEM_USER_NAME'));
}